package com.cbg.es.vo;

import com.cbg.es.dto.EsColEditDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 更新列的VO
 *
 * @author wangjuzheng
 * @date 2019-10-30
 **/
@Data
public class TableColVO implements Serializable {

    /**
     * 表id
     */
    @ApiModelProperty(value = "父级id")
    @NotBlank(message = "父级id为空")
    private String tableCategoryId;

    /**
     * 列信息
     */
    @Valid
    @ApiModelProperty(value = "列信息")
   @Size(min = 1,message = "请选择列信息")
    private List<EsColEditDTO> list;
}
